import React, { Component } from 'react'
import {HashRouter as Router,Route,Link } from "react-router-dom"
import NavigationBar from "./navigationBar/navigationBar"
import Hoem from "./home/home"
import Cart from "./cart/cart"
import My from "./my/my"
import Cation from "./cation/cation"
import Seachcenter from "./seachcenter/seachcenter"
import GoodDetail from "./goodDetail/goodDetail"
import GoodList from "./goodList/GoodList"
import Details from "./details/details"
import Productdetails from "./productDetails/productdetails"
export default class index extends Component {
    render() {
        return (
            <Router>
                <Route path="/"  exact  render={()=><NavigationBar><Hoem></Hoem></NavigationBar>}></Route>
                <Route path="/cart"  exact  render={()=><NavigationBar><Cart></Cart></NavigationBar>}></Route>
                <Route path="/my"  exact  render={()=><NavigationBar><My></My></NavigationBar>}></Route>
                <Route path="/cation"  exact  render={()=><NavigationBar><Cation></Cation></NavigationBar>}></Route>
                <Route path="/seachcenter"  exact  render={()=><Seachcenter></Seachcenter>}></Route>
                <Route path="/goodDetail/:id"  exact  render={(props)=><GoodDetail {...props}></GoodDetail>}></Route>
                <Route path="/goodList/:id"  exact  render={(props)=><GoodList {...props}></GoodList>}></Route>
                <Route path="/details/:tz"  exact  render={(props)=><Details {...props}></Details>}></Route>
                <Route path="/productdetails/:goods_id"  exact  render={(props)=><Productdetails {...props}></Productdetails>}></Route>
                <Link to=""></Link>
            </Router>
        )
    }
}